Page({

  /**
   * 页面的初始数据
   */
  data: {
    see_address: null,
    see_addtime: null,
    see_annimalclass: null,
    see_annimalsex: null,
    see_area: null,
    see_birthday: null,
    see_city: null,
    see_lat: null,
    see_lnt: null,
    see_mouth: null,
    see_pic_min: null,
    see_pr: null,
    see_qc: null,
    see_qq: null,
    see_tel: null,
    username: null,
    see_vive: null,
    see_wx: null,
    see_year: null,
    see_my: null,
    see_jy: null,
    head: null,
    see_describe: null

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var id = options.id;
    var that = this;
    wx.request({
      url: 'https://www.cwlyz.com/wx/details/detailssee?id=' + id, //仅为示例，并非真实的接口地址
      data: {
        x: '',
        y: ''
      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success: function (res) {
        that.setData({ see_describe: res.data.data.see_describe })
        that.setData({ see_address: res.data.data.see_address })
        that.setData({ see_addtime: res.data.data.see_addtime })
        that.setData({ see_annimalclass: res.data.data.see_annimalclass })
        that.setData({ see_annimalsex: res.data.data.see_annimalsex })
        that.setData({ see_area: res.data.data.see_area })
        that.setData({ see_birthday: res.data.data.see_birthday })
        that.setData({ see_city: res.data.data.see_city })
        that.setData({ see_lat: res.data.data.see_lat })
        that.setData({ see_lnt: res.data.data.see_lnt })
        that.setData({ see_mouth: res.data.data.see_mouth })
        that.setData({ see_pic_min: res.data.data.see_pic_min })
        that.setData({ see_pr: res.data.data.see_pr })
        that.setData({ see_qc: res.data.data.see_qc })
        that.setData({ see_qq: res.data.data.see_qq })
        that.setData({ see_tel: res.data.data.see_tel })
        that.setData({ username: res.data.data.username })
        that.setData({ see_vive: res.data.data.see_vive })
        that.setData({ see_wx: res.data.data.see_wx })
        that.setData({ see_year: res.data.data.see_year })
        that.setData({ see_my: res.data.data.see_my })
        that.setData({ see_jy: res.data.data.see_jy })
        that.setData({ head: res.data.data.head })
      }
    })



  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },
  phonebind: function (res) {
    wx.makePhoneCall({
      phoneNumber: res.currentTarget.dataset.id //仅为示例，并非真实的电话号码
    })
  },
  clickfuzhi: function (res) {
    var info = res.currentTarget.dataset.info;
    wx.setClipboardData({
      data: info,
      success: function (res) {
        wx.getClipboardData({
          success: function (res) {
            wx.showToast({
              title: '复制成功',
              icon: 'success',
              duration: 2000
            })
          }
        })
      }
    })
  },
  onShareAppMessage: function (res) {
    if (res.from === 'button') {
      // 来自页面内转发按钮
      console.log(res.target)
    }
    return {
      title: '宠物领养-宠物送养',
      path: '/pages/index/index',
      success: function (res) {
        // 转发成功
      },
      fail: function (res) {
        // 转发失败
      }
    }
  }
})